package com.yq.ylmall.product.mapper;

import com.yq.ylmall.model.product.Category;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 * 商品分类 Mapper 接口
 * </p>
 *
 * @author yzk789
 * @since 2024-05-30
 */
public interface CategoryMapper extends BaseMapper<Category> {

    void batchInsert(List categoryList);

    List<Category> selectByParentId(Long parentId);

    int countByParentId(Long id);
}
